using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Xml;

namespace Mdv.wssAddins.wss
{
    public class wssFieldRefs : Model
    {
        #region Non-Designer Properties
        private List<wssFieldRef> _fieldRefs;
        [Browsable(false)]
        public List<wssFieldRef> FieldRefs
        {
            get { return _fieldRefs; }
        }
        #endregion
        public override string ToString()
        {
            return "FieldRefs";
        }
        public override void ConstructMap()
        {
        }
        public override void LoadChildren(XmlNode node)
        {
            foreach (XmlNode xn in node.ChildNodes)
            {
                switch (xn.Name)
                {
                    case "FieldRef":
                        wssFieldRef fieldRef = new wssFieldRef();
                        fieldRef.Load(xn);
                        Children.Add(fieldRef);
                        break;
                }
            }
        }
    }
}